package org.datacoder.util
import org.springframework.validation.Errors
import org.springframework.validation.BeanPropertyBindingResult

class DAOException extends Exception{

    private final BeanPropertyBindingResult errors

    public DAOException(String message, BeanPropertyBindingResult errors){
        super(message + "errors: "+errors)
        this.errors = errors
    }

    public List<Errors> getErrors(){
        return errors
    }

}

